package edu.imu.question.mapper;

import edu.imu.question.entity.QuestionnaireType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 问卷模板类型
 */
public interface QuestionnaireTemplateTypeMapper {
    @Select("select id,type_name as typeName,type_desc as typeDesc from questionnaire_type " +
            "where id=#{id}")
    QuestionnaireType find(long id);

    @Select("select id,type_name as typeName,type_desc as typeDesc from questionnaire_type")
    List<QuestionnaireType> findAll();
}
